// { "framework": "Vue"} 
if(typeof app=="undefined"){app=weex}
if(typeof eeuiLog=="undefined"){var eeuiLog={_:function(t,e){var s=e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):e});if(typeof this.__m==='undefined'){this.__m=app.requireModule('debug')}this.__m.addLog(t,s)},debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("debug",e)},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("log",e)},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("info",e)},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("warn",e)},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("error",e)}}}
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = "./src/pages/member/addressEdit/addressEdit.vue?entry=true");
/******/ })
/************************************************************************/
/******/ ({

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/WSwitch.vue":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/WSwitch.vue ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
var animation = app.requireModule('animation');
/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'WSwitch',
  props: {
    value: {
      type: Boolean,
      "default": false
    },
    solid: Boolean,
    disabled: {
      type: Boolean,
      "default": false
    },
    blurColor: String,
    focusColor: String,
    borderColor: {
      type: String,
      "default": '#D9D9D9'
    },
    backgroundColor: {
      type: String,
      "default": '#E31D1A'
    }
  },
  data: function data() {
    return {
      wRatio: 1,
      hRatio: 1,
      loadIng: false,
      isAnimate: false,
      _checked: false,
      _ballStyle: {}
    };
  },
  created: function created() {
    this.inited();
  },
  mounted: function mounted() {
    var _this = this;

    this.wRatio = this.$refs.wSwitch.style.width / 144;
    this.hRatio = this.$refs.wSwitch.style.height / 72;
    this.$nextTick(function () {
      _this.inited();
    });
  },
  computed: {
    getBgStyle: function getBgStyle() {
      var solid = this.solid,
          borderColor = this.borderColor,
          backgroundColor = this.backgroundColor,
          disabled = this.disabled,
          wRatio = this.wRatio,
          hRatio = this.hRatio;
      var style = !solid ? {
        borderColor: borderColor,
        backgroundColor: 'transparent'
      } : {
        borderColor: backgroundColor,
        backgroundColor: backgroundColor
      };

      if (disabled) {
        style.opacity = 0.3;
      } else {
        style.opacity = 1;
      }

      style.flexDirection = 'row';
      style.alignItems = 'center';
      style.width = 144 * wRatio;
      style.height = 72 * hRatio;
      style.borderRadius = 72 * hRatio;
      style.borderWidth = 5 * hRatio;
      return style;
    },
    ballStyle: function ballStyle() {
      var _ballStyle = this._ballStyle,
          _checked = this._checked,
          hRatio = this.hRatio,
          focusColor = this.focusColor,
          solid = this.solid,
          backgroundColor = this.backgroundColor,
          blurColor = this.blurColor,
          borderColor = this.borderColor;
      var style = _ballStyle;
      style.width = 72 * hRatio - 5 * hRatio * 2;
      style.height = 72 * hRatio - 5 * hRatio * 2;
      style.borderRadius = style.width / 2;
      style.backgroundColor = _checked ? focusColor || (solid ? '#FFFFFF' : backgroundColor) : blurColor || (solid ? '#FFFFFF' : borderColor);
      return style;
    }
  },
  watch: {
    value: function value(bool) {
      this._checked = bool;
      this.toggleState(bool);
    }
  },
  methods: {
    changeState: function changeState() {
      var _this2 = this;

      if (this.loadIng) return;
      if (this.disabled) return;
      this._checked = !this._checked;
      this.toggleState(this._checked);
      this.loadIng = true;
      setTimeout(function () {
        _this2.$emit('input', _this2._checked);

        _this2.loadIng = false;
      }, 260);
    },
    toggleState: function toggleState(bool) {
      var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
      var style = bool ? {
        backgroundColor: this.focusColor || (this.solid ? '#FFFFFF' : this.backgroundColor),
        transform: 'scale(0.8) translate(' + (144 * this.wRatio - (72 * this.hRatio - 5 * this.hRatio * 2) - 5 * this.hRatio * 2) + 'px, 0)',
        transformOrigin: 'center center'
      } : {
        backgroundColor: this.blurColor || (this.solid ? '#FFFFFF' : this.borderColor),
        transform: 'scale(0.6)',
        transformOrigin: 'center center'
      };
      var wBall = this.$refs.wBall;

      if (!wBall) {
        return;
      }

      animation.transition(wBall, {
        styles: style,
        timingFunction: 'ease',
        duration: animated ? 260 : 0.00001
      });
    },
    inited: function inited() {
      this.value ? this._ballStyle = {
        backgroundColor: this.focusColor || (this.solid ? '#FFFFFF' : this.backgroundColor),
        transform: 'scale(0.8) translate(' + (144 * this.wRatio - (72 * this.hRatio - 5 * this.hRatio * 2) - 5 * this.hRatio * 2) + 'px, 0)'
      } : this._ballStyle = {
        backgroundColor: this.blurColor || (this.solid ? '#FFFFFF' : this.borderColor),
        transform: 'scale(0.6)'
      };
      this._checked = this.value;
      this.toggleState(this._checked, false);
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
  data: function data() {
    return {
      statusBarHeight: eeui.getStatusBarHeightPx()
    };
  },
  created: function created() {
    this.initIconFont();
  },
  props: {
    title: String,
    back: {
      "default": true
    }
  },
  methods: {
    backClick: function backClick() {
      if (this.back) {
        eeui.closePage();
      }
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/addressEdit/addressEdit.vue":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/addressEdit/addressEdit.vue ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _api_address__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../api/address */ "./src/api/address.js");
/* harmony import */ var _components_WSwitch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../components/WSwitch */ "./src/components/WSwitch.vue");
/* harmony import */ var _components_WSwitch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_components_WSwitch__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _components_myNavbar_myNavbar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../components/myNavbar/myNavbar */ "./src/components/myNavbar/myNavbar.vue");
/* harmony import */ var _components_myNavbar_myNavbar__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_components_myNavbar_myNavbar__WEBPACK_IMPORTED_MODULE_3__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



var eeui = app.requireModule('eeui');
var picker = weex.requireModule('picker');
/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'address',
  components: {
    WSwitch: _components_WSwitch__WEBPACK_IMPORTED_MODULE_2___default.a,
    myNavbar: _components_myNavbar_myNavbar__WEBPACK_IMPORTED_MODULE_3___default.a
  },
  data: function data() {
    return {
      title: "",
      type: "",
      isDefault: false,
      //是否是默认地址
      id: "",
      level: 0,
      phone: "",
      latitude: "",
      longitude: "",
      consignee: "",
      building: "",
      areaName: "",
      address: "",
      addressDetail: "",
      roomNumber: "",
      submitOff: true
    };
  },
  filters: {
    watchType: function watchType(val) {
      if (val == 0) {
        return '有电梯';
      } else if (val == 1) {
        return '1楼';
      } else if (val == 2) {
        return '2楼';
      } else if (val == 3) {
        return '3楼';
      } else if (val == 4) {
        return '4楼';
      } else if (val == 5) {
        return '5楼';
      } else if (val == 6) {
        return '6楼';
      } else if (val == 7) {
        return '7楼';
      } else if (val == 8) {
        return '8楼';
      } else if (val == 9) {
        return '9楼';
      }
    }
  },
  created: function created() {
    // 在实例创建完成后被立即调用
    var _this = this;

    this.initIconFont();
    var params = app.config.params;
    eeuiLog.info("params--" + JSON.stringify(params)); // const eventChannel = this.getOpenerEventChannel()
    // eventChannel.on('sendAddressDetail', function (data) {

    if (params.type == "add") {
      this.type = params.type;
      this.title = "添加收货地址";
    } else if (params.type == "edit") {
      this.title = "编辑收货地址";
      this.type = params.type;
      this.id = params.data.id;
      this.isDefault = params.data.isDefault; //是否是默认地址

      this.phone = params.data.phone;
      this.latitude = params.data.lat;
      this.longitude = params.data.lng;
      this.level = params.data.level;
      this.consignee = params.data.consignee;
      this.building = params.data.building;
      this.areaName = params.data.areaName;
      this.address = params.data.address;
      this.roomNumber = params.data.roomNumber;
      this.memberId = params.data.memberId;
    } // })

  },
  mounted: function mounted() {
    var _this = this;
  },
  methods: {
    selectLevel: function selectLevel() {
      var _this = this;

      picker.pick({
        items: ['有楼梯', '1楼', '2楼', '3楼', '4楼', '5楼', '6楼', '7楼', '8楼', '9楼']
      }, function (event) {
        if (event.result === 'success') {
          _this.level = event.data;
        }
      });
    },
    //跳转到区域选择页面
    toSelectArea: function toSelectArea() {
      var _this2 = this;

      eeui.openPage({
        pageName: "selectArea",
        url: "root://pages/member/addressEdit/selectArea.js",
        statusBarType: 'immersion',
        statusBarStyle: false
      }, function (res) {
        if (res.status == "destroy" && res.pageName == "selectArea") {
          var variable = eeui.getCaches('address');
          eeuiLog.log('variable--' + JSON.stringify(variable));

          if (!_this2.isNull(variable)) {
            eeuiLog.log('variable.location--' + variable.location);
            _this2.latitude = variable.location.split(",")[1];
            eeuiLog.log('latitude--' + _this2.latitude);
            _this2.longitude = variable.location.split(",")[0];
            eeuiLog.log('longitude--' + _this2.longitude);
            _this2.building = variable.adName + variable.address + "(" + variable.name + ")";
            eeuiLog.log('building--' + _this2.building);
            _this2.areaName = variable.adName;
            _this2.address = variable.address;
            eeuiLog.log('address--' + _this2.address);
            eeuiLog.log('addressDetail--' + _this2.addressDetail);
            eeui.setCaches('address', "");
          }
        }
      });
    },
    //表单提交事件
    submit: function submit() {
      var _this3 = this;

      if (this.isNull(this.consignee)) {
        eeui.toast({
          message: '收件人姓名不能为空'
        });
      } else if (this.isNull(this.phone)) {
        eeui.toast({
          message: "收件人号码不能为空"
        });
      } else if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phone)) {
        eeui.toast({
          message: "收件人号码输入有误"
        });
      } else if (this.isNull(this.building)) {
        eeui.toast({
          message: "请点选收货地址"
        });
      } else if (this.isNull(this.roomNumber)) {
        eeui.toast({
          message: "小区、门牌号信息不能为空"
        });
      } else {
        eeuiLog.info("this.submitOff" + this.submitOff);

        if (this.submitOff) {
          this.submitOff = false;
          var data = {};
          data.consignee = this.consignee;
          data.phone = this.phone;
          data.address = this.building + ' ' + this.roomNumber;
          data.areaName = this.areaName;
          data.level = this.level;
          data.building = this.building;
          data.isDefault = this.isDefault;
          data.roomNumber = this.roomNumber;
          data.memberId = this.memberId;
          data.lat = this.latitude;
          data.lng = this.longitude;
          eeuiLog.info("添加地址的data--" + JSON.stringify(data));
          eeuiLog.info(data);
          eeuiLog.info("问题是不是在这里--" + this.type);

          if (this.type == "add") {
            data = JSON.stringify(data);
            Object(_api_address__WEBPACK_IMPORTED_MODULE_1__["save"])(data).then(function (res) {
              eeuiLog.info("添加地址的res--" + JSON.stringify(res)); // eeuiLog.info("这个是里面的锁this.submitOff"+this.submitOff)

              if (res.type == 'success') {
                eeui.closePage();
                _this3.submitOff = true;
              }
            })["catch"](function (error) {
              eeuiLog.log(error);
              _this3.submitOff = true;
            });
          } else if (this.type == "edit") {
            eeuiLog.info("添加地址的数据data1--" + JSON.stringify(data));
            data.id = this.id;
            data = JSON.stringify(data);
            eeuiLog.info("添加地址的数据data--" + JSON.stringify(data));
            Object(_api_address__WEBPACK_IMPORTED_MODULE_1__["update"])(data).then(function (res) {
              eeuiLog.info("修改地址的res--" + JSON.stringify(res));

              if (res.type == 'success') {
                eeui.closePage({
                  pageName: "addressEdit"
                });
                _this3.submitOff = true;
              }
            })["catch"](function (error) {
              eeuiLog.log(error);
              _this3.submitOff = true;
            });
          }
        }
      }
    },
    //地址删除的事件
    del: function del() {
      eeuiLog.info(this.id);

      Object(_api_address__WEBPACK_IMPORTED_MODULE_1__["del"])(this.id).then(function (res) {
        eeuiLog.log("删除地址res--" + JSON.stringify(res));

        if (res.type == 'success') {
          eeui.closePage({
            pageName: "addressEdit"
          });
        }
      })["catch"](function (error) {
        eeuiLog.log(error);
      });
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "navbar": {
    "width": "750",
    "height": "100"
  },
  "text": {
    "fontSize": "36"
  },
  "status-bar": {
    "backgroundColor": "#FFFFFF"
  },
  "iconLeft": {
    "color": "#000000",
    "fontSize": "30",
    "paddingLeft": "30",
    "paddingRight": "30",
    "fontFamily": "iconfont2"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-7e9f2288!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=1!./src/pages/member/addressEdit/addressEdit.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-7e9f2288!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=1!./src/pages/member/addressEdit/addressEdit.vue ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "mine-container": {
    "flex": 1,
    "backgroundColor": "rgba(248,248,248,0.8)"
  },
  "navbar": {
    "width": "750",
    "height": "100",
    "marginBottom": "20"
  },
  "title2": {
    "color": "#cccccc",
    "fontSize": "36",
    "fontFamily": "iconfont2"
  },
  "addressEdit-list": {
    "marginTop": "20",
    "marginRight": "20",
    "marginBottom": 0,
    "marginLeft": "20",
    "backgroundColor": "rgba(255,255,255,1)",
    "borderRadius": "16",
    "paddingTop": 0,
    "paddingRight": "20",
    "paddingBottom": 0,
    "paddingLeft": "20"
  },
  "addressEdit-list-item": {
    "flexDirection": "row",
    "alignItems": "center",
    "height": "102",
    "fontSize": "28",
    "fontFamily": "PingFangSC",
    "fontWeight": "400",
    "color": "rgba(26,26,30,1)",
    "display": "flex",
    "position": "relative"
  },
  "area": {
    "justifyContent": "space-between"
  },
  "addressEdit-list-item-input": {
    "width": "470",
    "height": "50"
  },
  "bb": {
    "borderBottomStyle": "solid",
    "borderBottomWidth": "4",
    "borderBottomColor": "rgba(128,128,128,0.062)"
  },
  "addressEdit-list-icon": {
    "position": "absolute",
    "right": "0"
  },
  "addressEdit-label": {
    "width": "152",
    "fontSize": "30",
    "boxSizing": "border-box"
  },
  "detail": {
    "height": "120",
    "alignItems": "center"
  },
  "addressEdit-textarea": {
    "fontSize": "30",
    "flex": 1,
    "lineHeight": "40",
    "lines": 2,
    "textOverflow": "ellipsis",
    "fontFamily": "PingFang SC",
    "fontWeight": "400",
    "maxHeight": "80"
  },
  "addressEdit-textareaActive": {
    "fontSize": "30",
    "flex": 1,
    "lineHeight": "40",
    "lines": 2,
    "textOverflow": "ellipsis",
    "fontFamily": "PingFang SC",
    "fontWeight": "400",
    "maxHeight": "80",
    "color": "#000000"
  },
  "addressEdit-detail": {
    "fontSize": "30",
    "flex": 1,
    "lines": 2,
    "textOverflow": "ellipsis",
    "fontFamily": "PingFang SC",
    "fontWeight": "400",
    "color": "rgba(135,135,135,0.822)"
  },
  "addressEdit-detailActive": {
    "fontSize": "30",
    "flex": 1,
    "lines": 2,
    "textOverflow": "ellipsis",
    "fontFamily": "PingFang SC",
    "fontWeight": "400",
    "color": "#000000"
  },
  "addressEdit-list-defalut": {
    "fontSize": "30"
  },
  "grey": {
    "color": "#838383"
  },
  "addressEdit-list-submit-btn": {
    "fontSize": "32",
    "letterSpacing": "5",
    "color": "#FFFFFF",
    "fontWeight": "400"
  },
  "addressEdit-list-submit": {
    "alignItems": "center",
    "justifyContent": "center",
    "marginTop": "20",
    "marginRight": "20",
    "marginBottom": 0,
    "marginLeft": "20",
    "width": "710",
    "display": "block",
    "height": "82",
    "borderRadius": "100"
  },
  "addressEdit-list-submit-del": {
    "alignItems": "center",
    "justifyContent": "center",
    "marginTop": "20",
    "marginRight": "20",
    "marginBottom": 0,
    "marginLeft": "20",
    "display": "block",
    "width": "710",
    "height": "82",
    "backgroundColor": "rgb(200,200,200)",
    "borderRadius": "100",
    "color": "#FF0000"
  },
  "switch": {
    "width": "120",
    "height": "60"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-7e9f2288!./src/style/wx.css":
/*!*****************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-7e9f2288!./src/style/wx.css ***!
  \*****************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "container": {
    "height": 100,
    "display": "flex",
    "flexDirection": "column",
    "alignItems": "center",
    "justifyContent": "space-between",
    "paddingTop": "200",
    "paddingBottom": "200",
    "boxSizing": "border-box"
  },
  "navBack": {
    "marginLeft": "20",
    "fontSize": "38",
    "lineHeight": "38",
    "color": "#000000"
  },
  "bg_linear_gradient_bottom": {
    "backgroundColor": "#FFFFFF"
  },
  "bg_linear_gradient_header": {
    "backgroundImage": "linear-gradient(to bottom,#fc5157, rgba(248, 248, 248, 0.8))"
  },
  "botton_Bg_Color": {
    "backgroundImage": "linear-gradient(to bottom, rgba(237, 86, 75, 1), rgba(245, 113, 74, 1))"
  },
  "botton_Fz_Color": {
    "color": "#FFFFFF"
  },
  "botton_bd_color": {
    "borderStyle": "solid",
    "borderWidth": "1",
    "borderColor": "rgba(235,89,79,1)"
  },
  "botton_bd_fz_color": {
    "color": "rgba(235,89,79,1)"
  },
  "totalColor": {
    "backgroundColor": "#fc5157"
  },
  "details_bg_color": {
    "backgroundImage": "linear-gradient(to bottom, rgba(236, 95, 88, 1), rgb(252, 147, 147))"
  },
  "details_food_left_color": {
    "background": "linear-gradient(240deg, rgba(236, 95, 88, 1), rgb(252, 147, 147))"
  },
  "details_food_fz_color": {
    "color": "#FFFFFF"
  },
  "details_food_right_color": {
    "background": "linear-gradient(240deg, rgba(236, 95, 88, 1), rgb(252, 147, 147))"
  },
  "flex": {
    "display": "flex",
    "flexDirection": "row",
    "alignItems": "center"
  },
  "pd-T10": {
    "paddingTop": "10"
  },
  "pd-T20": {
    "paddingTop": "20"
  },
  "pd-T30": {
    "paddingTop": "30"
  },
  "pd-T40": {
    "paddingTop": "40"
  },
  "pd-R10": {
    "paddingRight": "10"
  },
  "pd-R20": {
    "paddingRight": "20"
  },
  "pd-R30": {
    "paddingRight": "30"
  },
  "pd-R40": {
    "paddingRight": "40"
  },
  "pd-B10": {
    "paddingBottom": "10"
  },
  "pd-B20": {
    "paddingBottom": "20"
  },
  "pd-B30": {
    "paddingBottom": "30"
  },
  "pd-B40": {
    "paddingBottom": "40"
  },
  "pd-L10": {
    "paddingLeft": "10"
  },
  "pd-L20": {
    "paddingLeft": "20"
  },
  "pd-L30": {
    "paddingLeft": "30"
  },
  "pd-L40": {
    "paddingLeft": "40"
  },
  "mg-T10": {
    "marginTop": "10"
  },
  "mg-T20": {
    "marginTop": "20"
  },
  "mg-T30": {
    "marginTop": "30"
  },
  "mg-T40": {
    "marginTop": "40"
  },
  "mg-R10": {
    "marginRight": "10"
  },
  "mg-R20": {
    "marginRight": "20"
  },
  "mg-R30": {
    "marginRight": "30"
  },
  "mg-R40": {
    "marginRight": "40"
  },
  "mg-B10": {
    "marginBottom": "10"
  },
  "mg-B20": {
    "marginBottom": "20"
  },
  "mg-B30": {
    "marginBottom": "30"
  },
  "mg-B40": {
    "marginBottom": "40"
  },
  "mg-L10": {
    "marginLeft": "10"
  },
  "mg-L20": {
    "marginLeft": "20"
  },
  "mg-L30": {
    "marginLeft": "30"
  },
  "mg-L40": {
    "marginLeft": "40"
  },
  "br-16": {
    "borderRadius": "16"
  },
  "br-20": {
    "borderRadius": "20"
  },
  "bs": {
    "boxShadow": "0px 0px 30px #00000015"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', [_c('div', {
    staticClass: ["status-bar"],
    style: {
      height: _vm.statusBarHeight + 'px'
    }
  }), _c('navbar', {
    staticClass: ["navbar"],
    style: {
      backgroundColor: 'white'
    }
  }, [_c('navbar-item', {
    attrs: {
      "type": "left"
    },
    on: {
      "click": _vm.backClick
    }
  }, [(_vm.back) ? _c('div', [_c('text', {
    staticClass: ["iconLeft"]
  }, [_vm._v("")])]) : _vm._e()]), _c('navbar-item', {
    attrs: {
      "type": "title"
    }
  }, [_c('text', {
    staticClass: ["text"]
  }, [_vm._v(_vm._s(_vm.title))])])], 1)], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-2e4b230b!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/WSwitch.vue":
/*!************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-2e4b230b!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/WSwitch.vue ***!
  \************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    ref: "wSwitch",
    style: _vm.getBgStyle,
    on: {
      "click": _vm.changeState
    }
  }, [_c('div', {
    ref: "wBall",
    style: _vm.ballStyle
  })])
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-7e9f2288!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/addressEdit/addressEdit.vue":
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-7e9f2288!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/addressEdit/addressEdit.vue ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["mine-container"]
  }, [_c('myNavbar', {
    attrs: {
      "title": _vm.title
    }
  }), _c('div', {
    staticClass: ["addressEdit-list"]
  }, [_c('div', {
    staticClass: ["addressEdit-list-item", "bb"]
  }, [_c('text', {
    staticClass: ["addressEdit-label"]
  }, [_vm._v("收货人")]), _c('input', {
    staticClass: ["addressEdit-list-item-input"],
    attrs: {
      "placeholder": "收货人姓名",
      "value": _vm.consignee,
      "value": (_vm.consignee)
    },
    on: {
      "input": function($event) {
        _vm.consignee = $event.target.attr.value
      }
    }
  })]), _c('div', {
    staticClass: ["addressEdit-list-item", "bb"]
  }, [_c('text', {
    staticClass: ["addressEdit-label"]
  }, [_vm._v("手机号码")]), _c('input', {
    staticClass: ["addressEdit-list-item-input"],
    attrs: {
      "placeholder": "收货人手机号码",
      "type": "tel",
      "value": _vm.phone,
      "value": (_vm.phone)
    },
    on: {
      "input": function($event) {
        _vm.phone = $event.target.attr.value
      }
    }
  })]), _c('div', {
    staticClass: ["addressEdit-list-item", "bb", "detail"],
    on: {
      "click": _vm.toSelectArea
    }
  }, [_c('text', {
    staticClass: ["addressEdit-label"]
  }, [_vm._v("所在地区")]), _c('text', {
    class: [_vm.building == '' ? 'addressEdit-detail' : 'addressEdit-detailActive'],
    attrs: {
      "value": _vm.building
    },
    model: {
      value: (_vm.building),
      callback: function($$v) {
        _vm.building = $$v
      },
      expression: "building"
    }
  }, [_vm._v(_vm._s(_vm.building == "" ? '小区/写字楼等' : _vm.building))]), _c('text', {
    staticClass: ["title2"]
  }, [_vm._v("")])]), _c('div', {
    staticClass: ["addressEdit-list-item", "detail"]
  }, [_c('text', {
    staticClass: ["addressEdit-label"]
  }), _c('textarea', {
    staticClass: ["addressEdit-textarea"],
    attrs: {
      "placeholder": "楼号/单元/门牌号",
      "value": _vm.roomNumber,
      "value": (_vm.roomNumber)
    },
    on: {
      "input": function($event) {
        _vm.roomNumber = $event.target.attr.value
      }
    }
  })])]), _c('div', {
    staticClass: ["addressEdit-list"]
  }, [_c('div', {
    staticClass: ["addressEdit-list-item", "area"]
  }, [_c('text', {
    staticClass: ["addressEdit-list-defalut"]
  }, [_vm._v("设为默认地址")]), _c('WSwitch', {
    staticClass: ["switch"],
    model: {
      value: (_vm.isDefault),
      callback: function($$v) {
        _vm.isDefault = $$v
      },
      expression: "isDefault"
    }
  })], 1)]), _c('div', {
    staticClass: ["btn", "addressEdit-list-submit", "botton_Bg_Color"],
    on: {
      "click": _vm.submit
    }
  }, [_c('text', {
    staticClass: ["addressEdit-list-submit-btn"]
  }, [_vm._v("确认保存")])]), (_vm.type == 'edit') ? _c('div', {
    staticClass: ["btn", "addressEdit-list-submit-del"],
    on: {
      "click": _vm.del
    }
  }, [_c('text', {
    staticClass: ["addressEdit-list-submit-btn"]
  }, [_vm._v("删除地址")])]) : _vm._e()], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "./src/api/address.js":
/*!****************************!*\
  !*** ./src/api/address.js ***!
  \****************************/
/*! exports provided: save, update, list, del */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "save", function() { return save; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "list", function() { return list; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/request */ "./src/utils/request.js");
 //添加收货地址

function save(data) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/receiver/save',
    method: 'post',
    data: data
  });
} //更新收货地址

function update(data) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/receiver/update',
    method: 'post',
    data: data
  });
} //更新收货地址

function list() {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/receiver/list',
    method: 'get' // params: params

  });
} //更新收货地址

function del(id) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/receiver/del/' + id,
    method: 'post'
  });
}

/***/ }),

/***/ "./src/components/WSwitch.vue":
/*!************************************!*\
  !*** ./src/components/WSwitch.vue ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./WSwitch.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/WSwitch.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-2e4b230b!../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./WSwitch.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-2e4b230b!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/WSwitch.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/components/WSwitch.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__


/***/ }),

/***/ "./src/components/myNavbar/myNavbar.vue":
/*!**********************************************!*\
  !*** ./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/components/myNavbar/myNavbar.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-0ae5e94f"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__


/***/ }),

/***/ "./src/entry.js":
/*!**********************!*\
  !*** ./src/entry.js ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

// 注意：修改此文件需要重新执行npm才会生效
// 注册全局组件示例
// import headNav from './components/headNav'
// Vue.component('headNav', headNav);

/***/ }),

/***/ "./src/pages/member/addressEdit/addressEdit.vue?entry=true":
/*!*****************************************************************!*\
  !*** ./src/pages/member/addressEdit/addressEdit.vue?entry=true ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-7e9f2288!../../../style/wx.css */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-7e9f2288!./src/style/wx.css")
)
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-7e9f2288!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=1!./addressEdit.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-7e9f2288!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=1!./src/pages/member/addressEdit/addressEdit.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./addressEdit.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/addressEdit/addressEdit.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-7e9f2288!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./addressEdit.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-7e9f2288!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/addressEdit/addressEdit.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/pages/member/addressEdit/addressEdit.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-7e9f2288"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ }),

/***/ "./src/utils/request.js":
/*!******************************!*\
  !*** ./src/utils/request.js ***!
  \******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Created by zhangsr on 2020/7/6.
 */
var stream = weex.requireModule('stream') || {};
var eeui = app.requireModule('eeui');

var Json2Url = function Json2Url(data) {
  try {
    var tempArr = [];

    for (var i in data) {
      var key = i;
      var value = encodeURIComponent(data[i]);
      tempArr.push(key + '=' + value);
    }

    var urlParamsStr = tempArr.join('&');
    return urlParamsStr;
  } catch (err) {
    return '';
  }
};

var request = function request(data) {
  var _this = this;

  return new Promise(function (resolve, reject) {
    var gdata = eeui.getCachesString("globalData", '');
    var globalData = JSON.parse(gdata);
    var token = globalData.token; // globalData.APP_BASE_API

    var APP_BASE_API = globalData.APP_BASE_API; // var APP_BASE_API ='https://api.365.qmin365.cn:8443'

    var header = {};

    if (token != null) {
      header = {
        'Authorization': token,
        'Content-Type': 'application/json'
      };
    }

    var url = data.url;

    if (data.params != null && data.params != undefined) {
      var params = Json2Url(data.params);

      if (url.indexOf('?') >= 0) {
        url = url + '&' + params;
      } else {
        url = url + '?' + params;
      }
    }

    stream.fetch({
      headers: header,
      method: data.method,
      url: APP_BASE_API + url,
      type: 'json',
      body: data.data,
      timeout: 20000
    }, function (ret) {
      // eeuiLog.log(ret)
      if (!ret.ok) {
        eeui.toast({
          message: '请求出错',
          gravity: 'middle'
        });
        reject(ret.statusText);
      } else {
        if (ret.data.type == "error") {
          eeui.toast({
            message: ret.data.content,
            gravity: 'middle'
          });
          reject(ret.data);
        } else {
          resolve(ret.data);
        }
      }
    });
  });
};

/* harmony default export */ __webpack_exports__["default"] = (request);

/***/ })

/******/ });